package org.brisling.sysman.domain;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;
import javax.persistence.Transient;

import org.brisling.base.domain.impl.BaseTreeDomain;
import org.brisling.base.domain.inf.BaseTreeDomainInf;
import org.brisling.common.ConstSysParam;

/**
 * 
 * 业务资源实体类
 * @author : jackson wang
 * @Date   : 2015年10月8日 下午10:01:07
 * @version: 1.0
 * 
 */
@Entity
@Table(name=ConstSysParam.MODULE_PERMISSION)
public class Permissions extends BaseTreeDomain implements BaseTreeDomainInf{

	/*
	 * 业务流程id
	 */
	private String flowid;
	
	/*
	 * 业务流程名称
	 */
	private String flowName;
	
	/*
	 * 级联字段名称
	 */
	private String uplinkField;
	
	
	/*
	 * 表单id值
	 */
	private String formid;
	
	/*
	 * 页面url
	 */
	private String pageURL;
	
	/*
	 * 按钮图标
	 */
	private String iconcls;
	
	/*
	 * 状态
	 */
	private String status;
	
	/*
	 * 类型
	 */
	private String type;
	
	/*
	 * 是否启用
	 */
	private String isused;	
	
	
	/*
	 * 扩展参数
	 */
	private String addition_param;
	
	//缺省启用
	@Column(length=10)
	private String defaultUsed;
	
	//列表页面使用
	@Column(length=10)
	private String listUsed ;
	
	//列表查看页面使用
	@Column(length=10)
	private String listViewUsed;
	
	//编辑页面使用
	@Column(length=10)
	private String editUsed ;
	
	//查看页面使用
	@Column(length=10)
	private String viewUsed ;
	
	@Transient
	private List<Permissions> child;	
	
	
	//主管领导
	private String leader_ids;
	
	private String leader_name;
	
	//业务简称
	private String short_name;
	
	//前缀名称
	private String pre_name;

	public String getFlowid() {
		return flowid;
	}


	public void setFlowid(String flowid) {
		this.flowid = flowid;
	}	


	


	public String getUplinkField() {
		return uplinkField;
	}


	public void setUplinkField(String uplinkField) {
		this.uplinkField = uplinkField;
	}
	public String getFormid() {
		return formid;
	}


	public void setFormid(String formid) {
		this.formid = formid;
	}


	public String getPageURL() {
		return pageURL;
	}


	public void setPageURL(String formPageURL) {
		this.pageURL = formPageURL;
	}

	public String getIconcls() {
		return iconcls;
	}


	public void setIconcls(String iconcls) {
		this.iconcls = iconcls;
	}


	public String getStatus() {
		return status;
	}


	public void setStatus(String status) {
		this.status = status;
	}


	public String getType() {
		return type;
	}


	public void setType(String type) {
		this.type = type;
	}


	public String getIsused() {
		return isused;
	}



	public void setIsused(String isused) {
		this.isused = isused;
	}

	public List<Permissions> getChild() {
		return child;
	}

	public void setChild(List<Permissions> child) {
		this.child = child;
	}


	@Override
	public Long getId() {
		// TODO Auto-generated method stub
		return this.id;
	}


	@Override
	public void setId(Long id) {
		// TODO Auto-generated method stub
		this.id = id;
	}


	public String getFlowName() {
		return flowName;
	}


	public void setFlowName(String flowName) {
		this.flowName = flowName;
	}


	public String getAddition_param() {
		return addition_param;
	}


	public void setAddition_param(String addition_param) {
		this.addition_param = addition_param;
	}


	public String getLeader_ids() {
		return leader_ids;
	}


	public void setLeader_ids(String leader_ids) {
		this.leader_ids = leader_ids;
	}


	public String getLeader_name() {
		return leader_name;
	}


	public void setLeader_name(String leader_name) {
		this.leader_name = leader_name;
	}


	public String getListUsed() {
		return listUsed;
	}


	public void setListUsed(String listUsed) {
		this.listUsed = listUsed;
	}


	public String getEditUsed() {
		return editUsed;
	}


	public void setEditUsed(String editUsed) {
		this.editUsed = editUsed;
	}


	public String getViewUsed() {
		return viewUsed;
	}


	public void setViewUsed(String viewUsed) {
		this.viewUsed = viewUsed;
	}


	public String getDefaultUsed() {
		return defaultUsed;
	}


	public void setDefaultUsed(String defaultUsed) {
		this.defaultUsed = defaultUsed;
	}


	public String getShort_name() {
		return short_name;
	}


	public void setShort_name(String short_name) {
		this.short_name = short_name;
	}


	public String getPre_name() {
		return pre_name;
	}


	public void setPre_name(String pre_name) {
		this.pre_name = pre_name;
	}


	public String getListViewUsed() {
		return listViewUsed;
	}


	public void setListViewUsed(String listViewUsed) {
		this.listViewUsed = listViewUsed;
	}
	
	
}
